<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<title>志愿靓号随心选</title>
		<script src="__PUBLIC__/js/jquery-1.9.1.min.js"></script>
		<link rel="stylesheet" href="__PUBLIC__/css/pulic.css" />
	</head>
	<body>
		<div class="banner"><img src="__PUBLIC__/images/banner.png"/></div>
		<div class="contDv">
			<form  action="__APP__/Index/index" method="post">
				<div class="formA clearfix">
					<span class="textA">选择号段</span>
					<div class="formDv">
						<select class="selectA" name='threenumber' >
							<option value="">请选择号段</option>
					   <!-- <option value="1" <if condition = "$threenumber eq 1">selected</if> >134</option>
							<option value="2" <if condition = "$threenumber eq 2">selected</if>  >135</option>
							<option value="3" <if condition = "$threenumber eq 3">selected</if>  >136</option>
							<option value="4" <if condition = "$threenumber eq 4">selected</if>  >137</option>
							<option value="5" <if condition = "$threenumber eq 5">selected</if> >138</option>
							<option value="6" <if condition = "$threenumber eq 6">selected</if>  >139</option> -->
							<option value="7" <if condition = "$threenumber eq 7">selected</if>  >150</option>
							<option value="8" <if condition = "$threenumber eq 8">selected</if>  >151</option>
							<option value="9" <if condition = "$threenumber eq 9">selected</if>  >152</option>
					  <!--  <option value="10" <if condition = "$threenumber eq 10">selected</if>  >157</option> -->
							<option value="11" <if condition = "$threenumber eq 11">selected</if>  >158</option>
							<option value="12" <if condition = "$threenumber eq 12">selected</if>  >159</option>
							<option value="13" <if condition = "$threenumber eq 13">selected</if>  >182</option>
							<option value="14" <if condition = "$threenumber eq 14">selected</if>  >183</option>
							<option value="15" <if condition = "$threenumber eq 15">selected</if> >187</option>
					  <!--  <option value="16" <if condition = "$threenumber eq 16">selected</if> >188</option> -->
							<option value="17" <if condition = "$threenumber eq 17">selected</if>  >178</option>
						</select>
					</div>
				</div>
				<div class="formA clearfix">
					<span class="textB">号码特征</span>
					<div class="formDv">
						<select class="selectA" name='category'>
							<option value="">请选择号码特征</option>
							<option value="1" <if condition = "$category eq 1">selected</if> >不含四</option>
							<option value="2" <if condition = "$category eq 2">selected</if> >后四位含四</option>
							<option value="3" <if condition = "$category eq 3">selected</if> >后四位不含四</option>
							<option value="4" <if condition = "$category eq 4">selected</if> >不含七</option>
							<option value="5" <if condition = "$category eq 5">selected</if> >后四位含七</option>
							<option value="6" <if condition = "$category eq 6">selected</if> >后四位不含七 </option>
							<option value="7" <if condition = "$category eq 7">selected</if> >不含四和七 </option>
							<option value="8" <if condition = "$category eq 8">selected</if> >后四位不含四和七</option>
						</select>
					</div>
				</div>
				<div class="formA clearfix">
					<span class="textC">靓号专区</span>
					<div class="formDv">
						<select class="selectA" name='special'>
							<option value="">请选择靓号规则</option>
							<option value="1" <if condition = "$special eq 1">selected</if> >520</option>
							<option value="2" <if condition = "$special eq 2">selected</if> >521</option>
							<option value="3" <if condition = "$special eq 3">selected</if> >ABAB</option>
							<option value="4" <if condition = "$special eq 4">selected</if> >ABC</option>
							<option value="5" <if condition = "$special eq 5">selected</if> >AABB</option>
							<option value="6" <if condition = "$special eq 6">selected</if> >AAA</option>
							<option value="7" <if condition = "$special eq 7">selected</if> >ABCD</option>
						</select>
					</div>
				</div>
				<div class="formA clearfix">
					<span class="textD">幸运数字</span>
					<div class="formDv">
						<input type="text" name='lucky' value = '{$lucky}' placeholder="幸运数字" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')" maxlength="1"/>
						<input type='submit' class="search"  value ='搜索' />
					</div>
				</div>
			</form>
		</div>
		<div class="contDv">
			<div class="selectNumber clearfix">
				<span class="fl">选择心仪的号码</span>
				<div class="fr">{$page}</div>
			</div>
			<div class="phoneNumber" id="num">
				<ul class="clearfix numUl" style="display:block;">
					<if condition = '$cellphone neq null' >
						<volist name = 'cellphone' id = 'v'>	
							<li><a href='__APP__/Index/package/number/{$v.number}'>{$v.number}</a></li>	
						</volist>
					<else />
							<li>没有您要的结果！请更换搜索条件！</li>
					</if>
				</ul>
			</div>
			<!-- <div class="phoneNumber">
				<ul class="clearfix numUl" id="num">
					<li><a href="javascript:;">13474497918</a></li>
					<li><a href="javascript:;">13474497918</a></li>
					<li><a href="javascript:;">13474497918</a></li>
					<li><a href="javascript:;">13474497918</a></li>
					<li><a href="javascript:;">13474497918</a></li>
					<li><a href="javascript:;">13474497918</a></li>
					<li><a href="javascript:;">13474497918</a></li>
					<li><a href="javascript:;">13474497918</a></li>
					<li><a href="javascript:;">13474497918</a></li>
					<li><a href="javascript:;">13474497918</a></li>
					<li><a href="javascript:;">13474497918</a></li>
					<li><a href="javascript:;">13474497918</a></li>
				</ul>
			</div> -->
		</div>
		<!-- <div class="contDv">
			<a class="subBtn" href="javascript:;" target="_blank" id="submitBut">提交</a>
		</div> -->
			
	</body>
	<!-- <script type="text/javascript">
		/*
			加载数据
			page:当前页
			pages:总页数
		*/
		var page=1,pages=5;
		function loadData(){
			console.log(page)
			console.log(pages)
			page==pages?page=1:page++;
			var str = '';
			console.log('__APP__/Index/page/',{p:page})
			$.getJSON('__APP__/Index/page/',{p:page,},function(data){
				console.log(data);
				for(var i = 0; i<data.length; i++){
					str += '<li><a href="javascript:;">'
						+ data[i].number
						+ '</a></li>';
				}
			});
			$('#num').html(str);
		}
		//初始化加载
		loadData(page,pages);
		//点击换一批加载数据
		$('#btn').bind('click',function(){
			loadData(page,pages);	
		})
		/*添加号码选择按钮-替换提交按钮连接*/
		$('#num').on('click','li',function(){
			var _this = $(this);
			_this.addClass('active').siblings().removeClass('active');
			$('#submitBut').attr('href','from2.html?'+_this.text());
		});
	</script> -->	
</html>
